namespace SmartSoft.Lists
{
    using SmartSoft;
    using SmartSoft.Controls;
    using SmartSoft.ADP;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms;

    public class FormDmNxEditor : FormListEditor
    {
        private IContainer components;
        private LabelControl lblCt_Ck0;
        private LabelControl lblCt_Kt;
        private LabelControl lblCt_Nx;
        private LabelControl lblMa_Ct_Kt;
        private LabelControl lblMa_Nx;
        private LabelControl lblPost_GL;
        private LabelControl lblPost_GL0;
        private LabelControl lblTen_Nx;
        private LabelControl lblTen_Nx_E;
        private LabelControl lblTk;
        private LabelControl lblTk_Co3_XNK;
        private LabelControl lblTk_No3_XNK;
        private LabelControl lblXNK_Ck;
        private LabelControl lblXNK_Ck0;
        private TextOption txtCt_Kt;
        private TextControl txtCt_Nx;
        private TextControl txtMa_Ct_Kt;
        private TextControl txtMa_Nx;
        private TextOption txtPost_GL;
        private TextControl txtTen_Nx;
        private TextControl txtTen_Nx_E;
        private TextControl txtTen_Tk;
        private TextControl txtTen_Tk_Co3;
        private TextControl txtTen_Tk_No3;
        private TextSearch txtTk;
        private TextSearch txtTk_Co3_XNK;
        private TextSearch txtTk_No3_XNK;
        private TextOption txtXNK_Ck;

        public FormDmNxEditor()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.txtMa_Nx = new SmartSoft.Controls.TextControl();
            this.lblMa_Nx = new SmartSoft.Controls.LabelControl();
            this.txtTen_Nx = new SmartSoft.Controls.TextControl();
            this.lblTen_Nx = new SmartSoft.Controls.LabelControl();
            this.txtTen_Nx_E = new SmartSoft.Controls.TextControl();
            this.lblTen_Nx_E = new SmartSoft.Controls.LabelControl();
            this.lblXNK_Ck = new SmartSoft.Controls.LabelControl();
            this.txtXNK_Ck = new SmartSoft.Controls.TextOption();
            this.lblXNK_Ck0 = new SmartSoft.Controls.LabelControl();
            this.lblPost_GL = new SmartSoft.Controls.LabelControl();
            this.txtPost_GL = new SmartSoft.Controls.TextOption();
            this.lblPost_GL0 = new SmartSoft.Controls.LabelControl();
            this.txtCt_Nx = new SmartSoft.Controls.TextControl();
            this.lblCt_Nx = new SmartSoft.Controls.LabelControl();
            this.txtTen_Tk = new SmartSoft.Controls.TextControl();
            this.txtTk = new SmartSoft.Controls.TextSearch();
            this.lblTk = new SmartSoft.Controls.LabelControl();
            this.lblTk_No3_XNK = new SmartSoft.Controls.LabelControl();
            this.txtTk_No3_XNK = new SmartSoft.Controls.TextSearch();
            this.txtTen_Tk_No3 = new SmartSoft.Controls.TextControl();
            this.lblTk_Co3_XNK = new SmartSoft.Controls.LabelControl();
            this.txtTk_Co3_XNK = new SmartSoft.Controls.TextSearch();
            this.txtTen_Tk_Co3 = new SmartSoft.Controls.TextControl();
            this.lblCt_Kt = new SmartSoft.Controls.LabelControl();
            this.txtCt_Kt = new SmartSoft.Controls.TextOption();
            this.lblCt_Ck0 = new SmartSoft.Controls.LabelControl();
            this.txtMa_Ct_Kt = new SmartSoft.Controls.TextControl();
            this.lblMa_Ct_Kt = new SmartSoft.Controls.LabelControl();
            this.SuspendLayout();
            // 
            // lblPhan_Loai
            // 
            this.lblPhan_Loai.Location = new System.Drawing.Point(12, 184);
            // 
            // txtMa_Loai1
            // 
            this.txtMa_Loai1.FirstFilter = "Type = \'NX1\'";
            this.txtMa_Loai1.Location = new System.Drawing.Point(123, 181);
            this.txtMa_Loai1.Size = new System.Drawing.Size(150, 20);
            this.txtMa_Loai1.TabIndex = 11;
            // 
            // txtMa_Loai2
            // 
            this.txtMa_Loai2.FirstFilter = "Type = \'NX2\'";
            this.txtMa_Loai2.Location = new System.Drawing.Point(275, 181);
            this.txtMa_Loai2.Size = new System.Drawing.Size(149, 20);
            this.txtMa_Loai2.TabIndex = 12;
            // 
            // txtMa_Loai3
            // 
            this.txtMa_Loai3.FirstFilter = "Type = \'NX3\'";
            this.txtMa_Loai3.Location = new System.Drawing.Point(426, 181);
            this.txtMa_Loai3.Size = new System.Drawing.Size(150, 20);
            this.txtMa_Loai3.TabIndex = 13;
            // 
            // txtMa_Nx
            // 
            this.txtMa_Nx.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtMa_Nx.CheckTextSearched = false;
            this.txtMa_Nx.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Nx.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Nx.Location = new System.Drawing.Point(123, 28);
            this.txtMa_Nx.MaxLength = 32;
            this.txtMa_Nx.Name = "txtMa_Nx";
            this.txtMa_Nx.OldValue = null;
            this.txtMa_Nx.Size = new System.Drawing.Size(127, 20);
            this.txtMa_Nx.TabIndex = 0;
            this.txtMa_Nx.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtMa_Nx.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;

            // 
            // lblMa_Nx
            // 
            this.lblMa_Nx.AutoSize = true;
            this.lblMa_Nx.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Nx.Location = new System.Drawing.Point(12, 31);
            this.lblMa_Nx.Name = "lblMa_Nx";
            this.lblMa_Nx.Size = new System.Drawing.Size(72, 14);
            this.lblMa_Nx.TabIndex = 4;
            this.lblMa_Nx.Text = "Mã nhập xuất";
            // 
            // txtTen_Nx
            // 
            this.txtTen_Nx.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Nx.CheckTextSearched = false;
            this.txtTen_Nx.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTen_Nx.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Nx.Location = new System.Drawing.Point(123, 50);
            this.txtTen_Nx.MaxLength = 128;
            this.txtTen_Nx.Name = "txtTen_Nx";
            this.txtTen_Nx.OldValue = null;
            this.txtTen_Nx.Size = new System.Drawing.Size(453, 20);
            this.txtTen_Nx.TabIndex = 1;
            this.txtTen_Nx.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_Nx.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            // 
            // lblTen_Nx
            // 
            this.lblTen_Nx.AutoSize = true;
            this.lblTen_Nx.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTen_Nx.Location = new System.Drawing.Point(12, 53);
            this.lblTen_Nx.Name = "lblTen_Nx";
            this.lblTen_Nx.Size = new System.Drawing.Size(103, 14);
            this.lblTen_Nx.TabIndex = 4;
            this.lblTen_Nx.Text = "Tên dạng nhập xuất";
            // 
            // txtTen_Nx_E
            // 
            this.txtTen_Nx_E.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtTen_Nx_E.CheckTextSearched = false;
            this.txtTen_Nx_E.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTen_Nx_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Nx_E.Location = new System.Drawing.Point(123, 72);
            this.txtTen_Nx_E.MaxLength = 128;
            this.txtTen_Nx_E.Name = "txtTen_Nx_E";
            this.txtTen_Nx_E.OldValue = null;
            this.txtTen_Nx_E.Size = new System.Drawing.Size(453, 20);
            this.txtTen_Nx_E.TabIndex = 2;
            this.txtTen_Nx_E.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtTen_Nx_E.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            // 
            // lblTen_Nx_E
            // 
            this.lblTen_Nx_E.AutoSize = true;
            this.lblTen_Nx_E.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTen_Nx_E.Location = new System.Drawing.Point(12, 75);
            this.lblTen_Nx_E.Name = "lblTen_Nx_E";
            this.lblTen_Nx_E.Size = new System.Drawing.Size(73, 14);
            this.lblTen_Nx_E.TabIndex = 4;
            this.lblTen_Nx_E.Text = "Tên tiếng Anh";
            // 
            // lblXNK_Ck
            // 
            this.lblXNK_Ck.AutoSize = true;
            this.lblXNK_Ck.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblXNK_Ck.Location = new System.Drawing.Point(12, 163);
            this.lblXNK_Ck.Name = "lblXNK_Ck";
            this.lblXNK_Ck.Size = new System.Drawing.Size(85, 14);
            this.lblXNK_Ck.TabIndex = 4;
            this.lblXNK_Ck.Text = "Dạng nhập khẩu";
            // 
            // txtXNK_Ck
            // 
            this.txtXNK_Ck.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtXNK_Ck.CheckTextSearched = false;
            this.txtXNK_Ck.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtXNK_Ck.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtXNK_Ck.InputMask = "C,K";
            this.txtXNK_Ck.Location = new System.Drawing.Point(123, 160);
            this.txtXNK_Ck.Name = "txtXNK_Ck";
            this.txtXNK_Ck.OldValue = null;
            this.txtXNK_Ck.Size = new System.Drawing.Size(23, 20);
            this.txtXNK_Ck.TabIndex = 6;
            this.txtXNK_Ck.Text = "C";
            this.txtXNK_Ck.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtXNK_Ck.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtXNK_Ck.Value = "C";
            // 
            // lblXNK_Ck0
            // 
            this.lblXNK_Ck0.AutoSize = true;
            this.lblXNK_Ck0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblXNK_Ck0.ForeColor = System.Drawing.Color.Blue;
            this.lblXNK_Ck0.Location = new System.Drawing.Point(152, 163);
            this.lblXNK_Ck0.Name = "lblXNK_Ck0";
            this.lblXNK_Ck0.Size = new System.Drawing.Size(195, 14);
            this.lblXNK_Ck0.TabIndex = 33;
            this.lblXNK_Ck0.Text = "C-Hàng nhập khẩu, K-Hàng trong nước";
            // 
            // lblPost_GL
            // 
            this.lblPost_GL.AutoSize = true;
            this.lblPost_GL.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblPost_GL.Location = new System.Drawing.Point(12, 119);
            this.lblPost_GL.Name = "lblPost_GL";
            this.lblPost_GL.Size = new System.Drawing.Size(38, 14);
            this.lblPost_GL.TabIndex = 4;
            this.lblPost_GL.Text = "Ghi sổ";
            // 
            // txtPost_GL
            // 
            this.txtPost_GL.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtPost_GL.CheckTextSearched = false;
            this.txtPost_GL.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtPost_GL.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtPost_GL.InputMask = "C,K";
            this.txtPost_GL.Location = new System.Drawing.Point(123, 116);
            this.txtPost_GL.Name = "txtPost_GL";
            this.txtPost_GL.OldValue = null;
            this.txtPost_GL.Size = new System.Drawing.Size(23, 20);
            this.txtPost_GL.TabIndex = 4;
            this.txtPost_GL.Text = "C";
            this.txtPost_GL.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtPost_GL.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtPost_GL.Value = "C";
            // 
            // lblPost_GL0
            // 
            this.lblPost_GL0.AutoSize = true;
            this.lblPost_GL0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblPost_GL0.ForeColor = System.Drawing.Color.Blue;
            this.lblPost_GL0.Location = new System.Drawing.Point(152, 119);
            this.lblPost_GL0.Name = "lblPost_GL0";
            this.lblPost_GL0.Size = new System.Drawing.Size(79, 14);
            this.lblPost_GL0.TabIndex = 33;
            this.lblPost_GL0.Text = "C-Có, K-Không";
            // 
            // txtCt_Nx
            // 
            this.txtCt_Nx.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtCt_Nx.CheckTextSearched = false;
            this.txtCt_Nx.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtCt_Nx.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtCt_Nx.Location = new System.Drawing.Point(123, 94);
            this.txtCt_Nx.MaxLength = 128;
            this.txtCt_Nx.Name = "txtCt_Nx";
            this.txtCt_Nx.OldValue = null;
            this.txtCt_Nx.Size = new System.Drawing.Size(453, 20);
            this.txtCt_Nx.TabIndex = 3;
            this.txtCt_Nx.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtCt_Nx.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            // 
            // lblCt_Nx
            // 
            this.lblCt_Nx.AutoSize = true;
            this.lblCt_Nx.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblCt_Nx.Location = new System.Drawing.Point(12, 97);
            this.lblCt_Nx.Name = "lblCt_Nx";
            this.lblCt_Nx.Size = new System.Drawing.Size(106, 14);
            this.lblCt_Nx.TabIndex = 4;
            this.lblCt_Nx.Text = "Danh sách chứng từ";
            // 
            // txtTen_Tk
            // 
            this.txtTen_Tk.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk.CheckTextSearched = false;
            this.txtTen_Tk.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Enabled = false;
            this.txtTen_Tk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk.Location = new System.Drawing.Point(256, 141);
            this.txtTen_Tk.Name = "txtTen_Tk";
            this.txtTen_Tk.OldValue = null;
            this.txtTen_Tk.Size = new System.Drawing.Size(320, 13);
            this.txtTen_Tk.TabIndex = 37;
            this.txtTen_Tk.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            // 
            // txtTk
            // 
            this.txtTk.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk.CheckTextSearched = false;
            this.txtTk.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk.EmptyIsValid = true;
            this.txtTk.FieldDisplay = "Ten_Tk";
            this.txtTk.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk.Location = new System.Drawing.Point(123, 138);
            this.txtTk.MaxLength = 32;
            this.txtTk.Name = "txtTk";
            this.txtTk.OldValue = null;
            this.txtTk.Size = new System.Drawing.Size(127, 20);
            this.txtTk.TabIndex = 5;
            this.txtTk.TableName = "DMTK";
            this.txtTk.TextDisplay = this.txtTen_Tk;
            this.txtTk.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            // 
            // lblTk
            // 
            this.lblTk.AutoSize = true;
            this.lblTk.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk.Location = new System.Drawing.Point(12, 141);
            this.lblTk.Name = "lblTk";
            this.lblTk.Size = new System.Drawing.Size(53, 14);
            this.lblTk.TabIndex = 36;
            this.lblTk.Text = "Tài khoản";
            // 
            // lblTk_No3_XNK
            // 
            this.lblTk_No3_XNK.AutoSize = true;
            this.lblTk_No3_XNK.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_No3_XNK.Location = new System.Drawing.Point(12, 185);
            this.lblTk_No3_XNK.Name = "lblTk_No3_XNK";
            this.lblTk_No3_XNK.Size = new System.Drawing.Size(34, 14);
            this.lblTk_No3_XNK.TabIndex = 36;
            this.lblTk_No3_XNK.Text = "Tk nợ";
            this.lblTk_No3_XNK.Visible = false;
            // 
            // txtTk_No3_XNK
            // 
            this.txtTk_No3_XNK.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_No3_XNK.CheckTextSearched = false;
            this.txtTk_No3_XNK.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_No3_XNK.FieldDisplay = "Ten_Tk";
            this.txtTk_No3_XNK.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk_No3_XNK.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_No3_XNK.Location = new System.Drawing.Point(123, 182);
            this.txtTk_No3_XNK.MaxLength = 32;
            this.txtTk_No3_XNK.Name = "txtTk_No3_XNK";
            this.txtTk_No3_XNK.OldValue = null;
            this.txtTk_No3_XNK.Size = new System.Drawing.Size(127, 20);
            this.txtTk_No3_XNK.TabIndex = 7;
            this.txtTk_No3_XNK.TableName = "DMTK";
            this.txtTk_No3_XNK.TextDisplay = this.txtTen_Tk_No3;
            this.txtTk_No3_XNK.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_No3_XNK.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_No3_XNK.Visible = false;
            // 
            // txtTen_Tk_No3
            // 
            this.txtTen_Tk_No3.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk_No3.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_No3.CheckTextSearched = false;
            this.txtTen_Tk_No3.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_No3.Enabled = false;
            this.txtTen_Tk_No3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_No3.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_No3.Location = new System.Drawing.Point(256, 185);
            this.txtTen_Tk_No3.Name = "txtTen_Tk_No3";
            this.txtTen_Tk_No3.OldValue = null;
            this.txtTen_Tk_No3.Size = new System.Drawing.Size(320, 13);
            this.txtTen_Tk_No3.TabIndex = 37;
            this.txtTen_Tk_No3.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_No3.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            // 
            // lblTk_Co3_XNK
            // 
            this.lblTk_Co3_XNK.AutoSize = true;
            this.lblTk_Co3_XNK.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblTk_Co3_XNK.Location = new System.Drawing.Point(12, 185);
            this.lblTk_Co3_XNK.Name = "lblTk_Co3_XNK";
            this.lblTk_Co3_XNK.Size = new System.Drawing.Size(33, 14);
            this.lblTk_Co3_XNK.TabIndex = 36;
            this.lblTk_Co3_XNK.Text = "Tk có";
            this.lblTk_Co3_XNK.Visible = false;
            // 
            // txtTk_Co3_XNK
            // 
            this.txtTk_Co3_XNK.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtTk_Co3_XNK.CheckTextSearched = false;
            this.txtTk_Co3_XNK.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtTk_Co3_XNK.FieldDisplay = "Ten_Tk";
            this.txtTk_Co3_XNK.FirstFilter = "Loai_Tk = \'C\'";
            this.txtTk_Co3_XNK.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTk_Co3_XNK.Location = new System.Drawing.Point(123, 181);
            this.txtTk_Co3_XNK.MaxLength = 32;
            this.txtTk_Co3_XNK.Name = "txtTk_Co3_XNK";
            this.txtTk_Co3_XNK.OldValue = null;
            this.txtTk_Co3_XNK.Size = new System.Drawing.Size(127, 20);
            this.txtTk_Co3_XNK.TabIndex = 8;
            this.txtTk_Co3_XNK.TableName = "DMTK";
            this.txtTk_Co3_XNK.TextDisplay = this.txtTen_Tk_Co3;
            this.txtTk_Co3_XNK.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemCode;
            this.txtTk_Co3_XNK.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtTk_Co3_XNK.Visible = false;
            // 
            // txtTen_Tk_Co3
            // 
            this.txtTen_Tk_Co3.BackColor = System.Drawing.SystemColors.Control;
            this.txtTen_Tk_Co3.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.txtTen_Tk_Co3.CheckTextSearched = false;
            this.txtTen_Tk_Co3.DisabledForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Co3.Enabled = false;
            this.txtTen_Tk_Co3.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtTen_Tk_Co3.ForeColor = System.Drawing.Color.Blue;
            this.txtTen_Tk_Co3.Location = new System.Drawing.Point(256, 184);
            this.txtTen_Tk_Co3.Name = "txtTen_Tk_Co3";
            this.txtTen_Tk_Co3.OldValue = null;
            this.txtTen_Tk_Co3.Size = new System.Drawing.Size(320, 13);
            this.txtTen_Tk_Co3.TabIndex = 37;
            this.txtTen_Tk_Co3.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtTen_Tk_Co3.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            // 
            // lblCt_Kt
            // 
            this.lblCt_Kt.AutoSize = true;
            this.lblCt_Kt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblCt_Kt.Location = new System.Drawing.Point(12, 184);
            this.lblCt_Kt.Name = "lblCt_Kt";
            this.lblCt_Kt.Size = new System.Drawing.Size(72, 14);
            this.lblCt_Kt.TabIndex = 4;
            this.lblCt_Kt.Text = "Tạo chứng từ";
            this.lblCt_Kt.Visible = false;
            // 
            // txtCt_Kt
            // 
            this.txtCt_Kt.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
            this.txtCt_Kt.CheckTextSearched = false;
            this.txtCt_Kt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtCt_Kt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtCt_Kt.InputMask = "C,K";
            this.txtCt_Kt.Location = new System.Drawing.Point(123, 181);
            this.txtCt_Kt.Name = "txtCt_Kt";
            this.txtCt_Kt.OldValue = null;
            this.txtCt_Kt.Size = new System.Drawing.Size(23, 20);
            this.txtCt_Kt.TabIndex = 9;
            this.txtCt_Kt.Text = "C";
            this.txtCt_Kt.UserTextLength = SmartSoft.AppInstance.TextControlLength.None;
            this.txtCt_Kt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.Right;
            this.txtCt_Kt.Value = "C";
            this.txtCt_Kt.Visible = false;
            // 
            // lblCt_Ck0
            // 
            this.lblCt_Ck0.AutoSize = true;
            this.lblCt_Ck0.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblCt_Ck0.ForeColor = System.Drawing.Color.Blue;
            this.lblCt_Ck0.Location = new System.Drawing.Point(152, 184);
            this.lblCt_Ck0.Name = "lblCt_Ck0";
            this.lblCt_Ck0.Size = new System.Drawing.Size(115, 14);
            this.lblCt_Ck0.TabIndex = 33;
            this.lblCt_Ck0.Text = "C-Có tạo, K-Không tạo";
            this.lblCt_Ck0.Visible = false;
            // 
            // txtMa_Ct_Kt
            // 
            this.txtMa_Ct_Kt.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtMa_Ct_Kt.CheckTextSearched = false;
            this.txtMa_Ct_Kt.DisabledForeColor = System.Drawing.Color.Empty;
            this.txtMa_Ct_Kt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.txtMa_Ct_Kt.Location = new System.Drawing.Point(123, 180);
            this.txtMa_Ct_Kt.MaxLength = 128;
            this.txtMa_Ct_Kt.Name = "txtMa_Ct_Kt";
            this.txtMa_Ct_Kt.OldValue = null;
            this.txtMa_Ct_Kt.Size = new System.Drawing.Size(127, 20);
            this.txtMa_Ct_Kt.TabIndex = 10;
            this.txtMa_Ct_Kt.UserTextLength = SmartSoft.AppInstance.TextControlLength.ItemDescription;
            this.txtMa_Ct_Kt.UserTrimMode = SmartSoft.AppInstance.TextControlTrimMode.All;
            this.txtMa_Ct_Kt.Visible = false;
            // 
            // lblMa_Ct_Kt
            // 
            this.lblMa_Ct_Kt.AutoSize = true;
            this.lblMa_Ct_Kt.Font = new System.Drawing.Font("Arial", 8.25F);
            this.lblMa_Ct_Kt.Location = new System.Drawing.Point(12, 185);
            this.lblMa_Ct_Kt.Name = "lblMa_Ct_Kt";
            this.lblMa_Ct_Kt.Size = new System.Drawing.Size(106, 14);
            this.lblMa_Ct_Kt.TabIndex = 4;
            this.lblMa_Ct_Kt.Text = "Mã chứng từ kế toán";
            this.lblMa_Ct_Kt.Visible = false;
            // 
            // FormDmNxEditor
            // 
            this.AddTitleText = "Thêm mới dạng nhập xuất";
            this.ClientSize = new System.Drawing.Size(593, 215);
            this.Controls.Add(this.txtTen_Tk_Co3);
            this.Controls.Add(this.txtTen_Tk_No3);
            this.Controls.Add(this.txtTen_Tk);
            this.Controls.Add(this.txtTk_Co3_XNK);
            this.Controls.Add(this.lblTk_Co3_XNK);
            this.Controls.Add(this.txtTk_No3_XNK);
            this.Controls.Add(this.lblTk_No3_XNK);
            this.Controls.Add(this.txtTk);
            this.Controls.Add(this.lblTk);
            this.Controls.Add(this.lblPost_GL0);
            this.Controls.Add(this.lblCt_Ck0);
            this.Controls.Add(this.lblXNK_Ck0);
            this.Controls.Add(this.txtCt_Kt);
            this.Controls.Add(this.txtPost_GL);
            this.Controls.Add(this.txtXNK_Ck);
            this.Controls.Add(this.lblPost_GL);
            this.Controls.Add(this.lblMa_Ct_Kt);
            this.Controls.Add(this.lblCt_Nx);
            this.Controls.Add(this.lblCt_Kt);
            this.Controls.Add(this.lblTen_Nx_E);
            this.Controls.Add(this.lblXNK_Ck);
            this.Controls.Add(this.lblTen_Nx);
            this.Controls.Add(this.lblMa_Nx);
            this.Controls.Add(this.txtMa_Ct_Kt);
            this.Controls.Add(this.txtCt_Nx);
            this.Controls.Add(this.txtTen_Nx_E);
            this.Controls.Add(this.txtTen_Nx);
            this.Controls.Add(this.txtMa_Nx);
            this.EditTitleText = "Sửa dạng nhập xuất";
            this.FirstFreeCode = "NX1";
            this.Name = "FormDmNxEditor";
            this.SecondFreeCode = "NX2";
            this.Text = "Thêm mới dạng nhập xuất";
            this.ThirdFreeCode = "NX3";
            this.Controls.SetChildIndex(this.lblPhan_Loai, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai1, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai2, 0);
            this.Controls.SetChildIndex(this.txtMa_Loai3, 0);
            this.Controls.SetChildIndex(this.txtMa_Nx, 0);
            this.Controls.SetChildIndex(this.txtTen_Nx, 0);
            this.Controls.SetChildIndex(this.txtTen_Nx_E, 0);
            this.Controls.SetChildIndex(this.txtCt_Nx, 0);
            this.Controls.SetChildIndex(this.txtMa_Ct_Kt, 0);
            this.Controls.SetChildIndex(this.lblMa_Nx, 0);
            this.Controls.SetChildIndex(this.lblTen_Nx, 0);
            this.Controls.SetChildIndex(this.lblXNK_Ck, 0);
            this.Controls.SetChildIndex(this.lblTen_Nx_E, 0);
            this.Controls.SetChildIndex(this.lblCt_Kt, 0);
            this.Controls.SetChildIndex(this.lblCt_Nx, 0);
            this.Controls.SetChildIndex(this.lblMa_Ct_Kt, 0);
            this.Controls.SetChildIndex(this.lblPost_GL, 0);
            this.Controls.SetChildIndex(this.txtXNK_Ck, 0);
            this.Controls.SetChildIndex(this.txtPost_GL, 0);
            this.Controls.SetChildIndex(this.txtCt_Kt, 0);
            this.Controls.SetChildIndex(this.lblXNK_Ck0, 0);
            this.Controls.SetChildIndex(this.lblCt_Ck0, 0);
            this.Controls.SetChildIndex(this.lblPost_GL0, 0);
            this.Controls.SetChildIndex(this.lblTk, 0);
            this.Controls.SetChildIndex(this.txtTk, 0);
            this.Controls.SetChildIndex(this.lblTk_No3_XNK, 0);
            this.Controls.SetChildIndex(this.txtTk_No3_XNK, 0);
            this.Controls.SetChildIndex(this.lblTk_Co3_XNK, 0);
            this.Controls.SetChildIndex(this.txtTk_Co3_XNK, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk_No3, 0);
            this.Controls.SetChildIndex(this.txtTen_Tk_Co3, 0);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        public override bool OnSave()
        {
            DataRow localCurrentRow;
            if (string.IsNullOrEmpty(this.txtMa_Nx.Text))
            {
                MessageBox.Show("Chưa nhập mã dạng nhập xuất!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtTen_Nx.Text))
            {
                MessageBox.Show("Chưa nhập tên dạng nhập xuất!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            if (string.IsNullOrEmpty(this.txtCt_Nx.Text))
            {
                MessageBox.Show("Chưa nhập chứng từ đúng dạng nhập xuất này!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
                return false;
            }
            //if ((this.txtCt_Kt.Text == "C") && string.IsNullOrEmpty(this.txtMa_Ct_Kt.Text))
            //{
            //    MessageBox.Show("Chưa nhập mã chứng từ tự động lập!", AppInstance.SoftwareName, MessageBoxButtons.OK, MessageBoxIcon.Hand);
            //    return false;
            //}
            if (base.NewChecked)
            {
                localCurrentRow = base.LocalTable.NewRow();
            }
            else
            {
                localCurrentRow = base.LocalCurrentRow;
            }
            localCurrentRow["Ma_Nx"] = this.txtMa_Nx.Value;
            localCurrentRow["Ten_Nx"] = this.txtTen_Nx.Value;
            localCurrentRow["Ten_Nx_E"] = this.txtTen_Nx_E.Value;
            localCurrentRow["Ct_Nx"] = this.txtCt_Nx.Value;
            localCurrentRow["Post_GL"] = this.txtPost_GL.Value;
            localCurrentRow["Tk"] = this.txtTk.Value;
            localCurrentRow["Ten_Tk"] = this.txtTen_Tk.Value;
            localCurrentRow["XNK_Ck"] = this.txtXNK_Ck.Value;
            localCurrentRow["Tk_No3_XNK"] = this.txtTk_No3_XNK.Value;
            localCurrentRow["Ten_No3"] = this.txtTen_Tk_No3.Value;
            localCurrentRow["Tk_Co3_XNK"] = this.txtTk_Co3_XNK.Value;
            localCurrentRow["Ten_Co3"] = this.txtTen_Tk_Co3.Value;
            localCurrentRow["Ct_Kt"] = this.txtCt_Kt.Value;
            localCurrentRow["Ma_Ct_Kt"] = this.txtMa_Ct_Kt.Value;
            localCurrentRow["Ma_Loai1"] = base.txtMa_Loai1.Value;
            localCurrentRow["Ma_Loai2"] = base.txtMa_Loai2.Value;
            localCurrentRow["Ma_Loai3"] = base.txtMa_Loai3.Value;
            DmNxDataAccess access = new DmNxDataAccess();
            if (base.ShowMessage(localCurrentRow, access.SaveRow(base.NewChecked, localCurrentRow)))
            {
                return false;
            }
            if (base.NewChecked)
            {
                base.LocalTable.Rows.Add(localCurrentRow);
            }
            base.LocalCurrentRow = localCurrentRow;
            base.LocalTable.AcceptChanges();
            this.txtMa_Nx.Focus();
            return base.OnSave();
        }

        public override void OnShow()
        {
            this.txtMa_Nx.Value = base.LocalCurrentRow["Ma_Nx"];
            this.txtTen_Nx.Value = base.LocalCurrentRow["Ten_Nx"];
            this.txtTen_Nx_E.Value = base.LocalCurrentRow["Ten_Nx_E"];
            this.txtCt_Nx.Value = base.LocalCurrentRow["Ct_Nx"];
            this.txtPost_GL.Value = base.LocalCurrentRow["Post_GL"];
            this.txtTk.Value = base.LocalCurrentRow["Tk"];
            this.txtTen_Tk.Value = base.LocalCurrentRow["Ten_Tk"];
            this.txtXNK_Ck.Value = base.LocalCurrentRow["XNK_Ck"];
            this.txtTk_No3_XNK.Value = base.LocalCurrentRow["Tk_No3_XNK"];
            this.txtTen_Tk_No3.Value = base.LocalCurrentRow["Ten_No3"];
            this.txtTk_Co3_XNK.Value = base.LocalCurrentRow["Tk_Co3_XNK"];
            this.txtTen_Tk_Co3.Value = base.LocalCurrentRow["Ten_Co3"];
            this.txtCt_Kt.Value = base.LocalCurrentRow["Ct_Kt"];
            this.txtMa_Ct_Kt.Value = base.LocalCurrentRow["Ma_Ct_Kt"];
            base.txtMa_Loai1.Value = base.LocalCurrentRow["Ma_Loai1"];
            base.txtMa_Loai2.Value = base.LocalCurrentRow["Ma_Loai2"];
            base.txtMa_Loai3.Value = base.LocalCurrentRow["Ma_Loai3"];
            base.OnShow();
        }
    }
}

